$OpenBSD: patch-src_playlist_cpp,v 1.1 2014/11/07 09:02:29 dcoppa Exp $

commit bf33a45935eca553f85d047b7a986ccbe769adc5
Author: Andrzej Rybczak <electricityispower@gmail.com>
Date:   Thu Nov 6 20:30:42 2014 +0100

playlist: initialize timer

--- src/playlist.cpp.orig	Thu Nov  6 19:21:21 2014
+++ src/playlist.cpp	Fri Nov  7 09:44:10 2014
@@ -20,6 +20,7 @@
 
 #include <algorithm>
 #include <boost/bind.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
 #include <sstream>
 
 #include "display.h"
@@ -49,6 +50,7 @@ bool playlistEntryMatcher(const boost::regex &rx, cons
 
 Playlist::Playlist()
 : m_total_length(0), m_remaining_time(0), m_scroll_begin(0)
+, m_timer(boost::posix_time::from_time_t(0))
 , m_reload_total_length(false), m_reload_remaining(false)
 {
 	w = NC::Menu<MPD::Song>(0, MainStartY, COLS, MainHeight, Config.playlist_display_mode == DisplayMode::Columns && Config.titles_visibility ? Display::Columns(COLS) : "", Config.main_color, NC::Border::None);
